import request from '@/utils/request'



export function maintenanceBriefingList(data) { //生产简报-列表
  return request({
    url: '/project-quality/api/production/repair/report/page',
    method: 'post',
    data
  })
}


export function maintenanceBriefingAdd(data) { //生产简报-新增
  return request({
    url: '/project-quality/api/production/repair/report/add',
    method: 'post',
    data
  })
}

export function maintenanceBriefingEdit(data) { //生产简报-编辑
  return request({
    url: '/project-quality/api/production/repair/report/edit',
    method: 'post',
    data
  })
}
export function maintenanceBriefinglatest(data) { //生产维修简报-通过时间和设施id查询最新的一条日报
  return request({
    url: '/project-quality/api/production/repair/report/latest',
    method: 'post',
    data
  })
}


export function maintenanceBriefingDelete(id) { //生产简报-删除
  return request({
    url: '/project-quality/api/production/repair/report/del/' + id,
    method: 'get',
  })
}


export function maintenanceBriefingDetails(id) { //生产简报-详情
  return request({
    url: '/project-quality/api/production/repair/report/' + id,
    method: 'get',
  })
}

export function  maintenanceBriefingExport(data) { //生产简报-导出
    return request({
        url: '/project-quality/api/production/repair/report/export',
        responseType: 'arraybuffer',
        method: 'POST',
        data,
    })
  }
  